#define MAXSIZE 10
#define OK      1
#define ERROR   0

typedef int SElemType;


typedef struct {
    SElemType data[MAXSIZE];
    int top;
}SqStack;



int InitStack(SqStack* S);
int Push(SqStack* S, SElemType e);
int Pop(SqStack* S, SElemType* e);
int StackLength(SqStack S);
int ClearStack(SqStack* S);
